/*
 * @Description: 
 * @Author: mmzhang
 * @Date: 2022-04-15 11:10:23
 * @LastEditTime: 2022-11-21 11:40:36
 */

import table from '@/components/dt/table/render.js'
import nameOpt from '@/biz/option/name.js'
import dateOpt from '@/biz/option/date.js'
import Opt from '@/components/dt/info/Opt.js'
import ruleOpt from '@/biz/option/rule.js'
import dt from '@dt/dt'

let _this = null
class ParamsDate {
  constructor(vm) {
    this.opts = {}
    _this = vm
    this.build()
  }
  build() {
    this.opts = {
      options: [
      {
        title: '签约日期',
        desc: '显示“签约日期”在所选日期范围内的签约单',
        showText: '签约',
        checked: true,
        key: '5'
      },
      {
        title: '退签日期',
        desc: '显示“退签日期”在所选日期范围内的签约单',
        showText: '退签',
        checked: true,
        key: '3'
      },
      {
        title: '认购日期',
        desc: '显示“认购日期”在所选日期范围内的签约单',
        showText: '认购',
        checked: false,
        key: '1'
      },
      {
        title: '全款日期',
        desc: '显示“全款日期”在所选日期范围内的签约单',
        showText: '全款',
        checked: false,
        key: '6'
      },
      {
        title: '交房日期',
        desc: '显示“交房日期”在所选日期范围内的签约单',
        showText: '交房',
        checked: false,
        key: '7'
      }],
      dateList: [
      {
        title: '昨日',
        key: 0
      }, {
        title: '今日',
        key: 1
      }, {
        title: '本周',
        key: 2
      }, {
        title: '本月',
        key: 3
      }, {
        title: '本年',
        key: 4
      }],
      checkIndex: 3,
      containDate: ['5', '3'],
      tips: '设置后，将在订单列表中，显示您所选日期范围内产生签约、退签或全款的签约单'
    }
  }
  options() {
    return this.opts
  }
}

export default ParamsDate